confirm() Global Functionconfirm(text) Description The Confirm global function prompts the user with a modal dialog and yes/no buttons which clear the dialog. These return a boolean; true if yes, false if no. Parameters
Returns Boolean. Example var shouldAdd = confirm("Add to Render Queue?"); if (shouldAdd == "true"){ proj.renderQueue.items.add(myCompItem); } |